

#include <iostream>

class Test
{
    private:
        Test(){}
        Test(const Test&) = delete;
    public:
        static Test* getInstace()
        {
            return _test;
        }
        void print()
        {
            std::cout<<"Hello!!!"<<std::endl;
        }
    private:
        static Test* _test;
};

Test* Test::_test = new Test();

int main()
{
    Test::getInstace()->print();
    return 0;
}